extends Node2D
@onready var animation_player = $AnimationPlayer
@onready var rebirth_button = $RebirthButton

signal restart_button_pressed
func _ready() -> void:
	hide()
	set_process_input(false)



func show_game_over() -> void:
	show()
	animation_player.play("gameoverscreen")
	rebirth_button.pressed.connect(
		func():
			restart_button_pressed.emit()
	)	
